package io.itit.ecp.admin.server.service;

import icu.mhb.mybatisplus.plugln.base.service.JoinIService;
import io.itit.ecp.admin.server.entity.UserDataRangeEntity;

/**
 * <p>
 *
 * @Author：Roy
 * @Description：用户数据范围服务类
 * @Date：Create by 2024-01-09 11:37:16
 */
public interface IUserDataRangeService extends JoinIService<UserDataRangeEntity> {

    /**
     * 先删后增，只保留最新的一条
     *
     * @param userId
     * @param dataRangeId
     * @return
     */
    Boolean save(String userId, String dataRangeId);
}